package com.hutiao.snowhb.wechat.parser;

import org.jdom.Element;
import org.jdom.JDOMException;

import com.hutiao.snowhb.wechat.vo.WxRecvMsg;
import com.hutiao.snowhb.wechat.vo.WxRecvPicMsg;

public class WxRecvPicMsgParser extends WxRecvMsgBaseParser {

	@Override
	protected WxRecvPicMsg parser(Element root, WxRecvMsg msg) throws JDOMException {
		
		String picUrl = getElementText(root, "PicUrl");
		String mediaId = getElementText(root, "MediaId");
		
		return new WxRecvPicMsg(msg, picUrl, mediaId);
	}

}
